package com.casic.cloud.controller;

import com.casic.cloud.service.ResumeFeignClient;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: rare_earth_cloud
 * @description: 收发控制器，仅用于演示
 * @author: Tan_sir
 * @create: 2021-05-06 11:46
 **/

@RestController
@RequestMapping("/test")
public class TestController {

    /*http://localhost:8090/autodeliver/checkState/1545132?access_token=d256bb66-9d94-4422-95e6-0e1a8d873024*/
    /**
     * 提供者模拟处理超时，调用方法添加Hystrix控制
     *
     * @return
     */
    @GetMapping("/test")
    public Integer test() {
        return 123;
    }

}

